.class public Lcom/kwad/sdk/core/a/b;
.super Ljava/lang/Object;


# static fields
.field private static volatile a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

.field private static volatile b:Z


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    return-object v0

    :cond_0
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->pkgNameList:Ljava/util/List;

    return-object v0
.end method

.method public static a(Landroid/content/Context;)V
    .locals 0
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    invoke-static {p0}, Lcom/kwad/sdk/core/a/b;->c(Landroid/content/Context;)Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    move-result-object p0

    sput-object p0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    return-void
.end method

.method public static a(Landroid/content/Context;I)V
    .locals 2
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    if-eqz p0, :cond_0

    const/4 v0, 0x0

    const-string v1, "ksadsdk_rep"

    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p0

    if-eqz p0, :cond_0

    invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p0

    const-string v0, "batchReportCacheType"

    invoke-interface {p0, v0, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V

    :cond_0
    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;)V
    .locals 0
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    if-eqz p1, :cond_0

    invoke-static {p1}, Lcom/kwad/sdk/core/a/b;->a(Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;)V

    invoke-static {p0, p1}, Lcom/kwad/sdk/core/a/b;->b(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;)Z

    :cond_0
    return-void
.end method

.method public static a(Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;)V
    .locals 1

    sget-boolean v0, Lcom/kwad/sdk/core/a/b;->b:Z

    if-nez v0, :cond_0

    if-eqz p0, :cond_0

    sput-object p0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    const/4 p0, 0x1

    sput-boolean p0, Lcom/kwad/sdk/core/a/b;->b:Z

    :cond_0
    return-void
.end method

.method public static b(Landroid/content/Context;)I
    .locals 3
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    const/4 v0, 0x2

    if-eqz p0, :cond_0

    const/4 v1, 0x0

    const-string v2, "ksadsdk_rep"

    invoke-virtual {p0, v2, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p0

    if-eqz p0, :cond_0

    const-string v1, "batchReportCacheType"

    invoke-interface {p0, v1, v0}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result p0

    return p0

    :cond_0
    return v0
.end method

.method public static b()Ljava/lang/String;
    .locals 1

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    :cond_0
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerConfig:Ljava/lang/String;

    return-object v0
.end method

.method private static b(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;)Z
    .locals 3
    .param p1    # Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    const/4 v0, 0x0

    if-eqz p0, :cond_5

    const-string v1, "ksadsdk_config"

    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->toolbarSwitch:I

    const-string v2, "toolbarSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->likeButtonSwitch:I

    const-string v2, "likeButtonSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->moreButtonSwitch:I

    const-string v2, "moreButtonSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->commentButtonSwitch:I

    const-string v2, "commentButtonSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->seekBarSwitch:I

    const-string v2, "seekBarSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->videoCacheSwitch:I

    const-string v2, "videoCacheSwitch"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget-object v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->pkgNameList:Ljava/util/List;

    invoke-static {v1}, Lcom/kwad/sdk/c/j;->a(Ljava/util/List;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->pkgNameList:Ljava/util/List;

    invoke-static {v1}, Lcom/kwad/sdk/c/e;->a(Ljava/util/List;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "pkgNameList"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    :cond_0
    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->batchReportCatchLimit:I

    const-string v2, "batchReportCatchLimit"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->batchReportCacheType:I

    invoke-static {p0, v1}, Lcom/kwad/sdk/core/a/b;->a(Landroid/content/Context;I)V

    iget-object p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->hostList:Ljava/util/List;

    invoke-static {p0}, Lcom/kwad/sdk/c/j;->a(Ljava/util/List;)Z

    move-result p0

    if-eqz p0, :cond_1

    iget-object p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->hostList:Ljava/util/List;

    invoke-static {p0}, Lcom/kwad/sdk/c/e;->a(Ljava/util/List;)Lorg/json/JSONArray;

    move-result-object p0

    invoke-virtual {p0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v1, "hostList"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    :cond_1
    iget-object p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->posContentConfigList:Ljava/util/List;

    invoke-static {p0}, Lcom/kwad/sdk/c/j;->a(Ljava/util/List;)Z

    move-result p0

    if-eqz p0, :cond_3

    new-instance p0, Lorg/json/JSONArray;

    invoke-direct {p0}, Lorg/json/JSONArray;-><init>()V

    iget-object v1, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->posContentConfigList:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/kwad/sdk/core/b;

    invoke-interface {v2}, Lcom/kwad/sdk/core/b;->toJson()Lorg/json/JSONObject;

    move-result-object v2

    invoke-virtual {p0, v2}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v1, "posContentInfoList"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    :cond_3
    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->uiType:I

    const-string v1, "uiType"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->preloadSwitch:I

    const-string v1, "preloadSwitch"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->rewardTopBarNewStyle:I

    const-string v1, "rewardTopBarNewStyle"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->convertEnableStrongPatch:I

    const-string v1, "convertEnableStrongPatch"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget-object p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerConfig:Ljava/lang/String;

    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p0

    if-nez p0, :cond_4

    iget-object p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerConfig:Ljava/lang/String;

    const-string v1, "playerConfig"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    :cond_4
    iget-boolean p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerEnable:Z

    const-string v1, "playerEnable"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlaySpeed:F

    const-string v1, "homePlaySpeed"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlaySpeedTime:I

    const-string v1, "homePlaySpeedTime"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlayCompleteType:I

    const-string v1, "homePlayCompleteType"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->replayTubeEpisode:I

    const-string v1, "replayTubeEpisode"

    invoke-interface {v0, v1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    iget p0, p1, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->authorProfileSwitch:I

    const-string p1, "authorProfileSwitch"

    invoke-interface {v0, p1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    move-result p0

    return p0

    :cond_5
    return v0
.end method

.method private static c(Landroid/content/Context;)Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;
    .locals 6
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    new-instance v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    invoke-direct {v0}, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;-><init>()V

    if-eqz p0, :cond_0

    const/4 v1, 0x0

    const-string v2, "ksadsdk_config"

    invoke-virtual {p0, v2, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p0

    if-eqz p0, :cond_0

    const/4 v2, 0x1

    const-string v3, "toolbarSwitch"

    invoke-interface {p0, v3, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->toolbarSwitch:I

    const-string v3, "likeButtonSwitch"

    invoke-interface {p0, v3, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->likeButtonSwitch:I

    const-string v3, "moreButtonSwitch"

    invoke-interface {p0, v3, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->moreButtonSwitch:I

    const-string v3, "commentButtonSwitch"

    invoke-interface {p0, v3, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->commentButtonSwitch:I

    const/16 v3, 0x3b

    const-string v4, "seekBarSwitch"

    invoke-interface {p0, v4, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->seekBarSwitch:I

    const-string v3, "videoCacheSwitch"

    invoke-interface {p0, v3, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->videoCacheSwitch:I

    const-string v3, ""

    const-string v4, "pkgNameList"

    invoke-interface {p0, v4, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/kwad/sdk/c/e;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v4

    iput-object v4, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->pkgNameList:Ljava/util/List;

    const/16 v4, 0x14

    const-string v5, "batchReportCatchLimit"

    invoke-interface {p0, v5, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v4

    iput v4, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->batchReportCatchLimit:I

    const-string v4, "hostList"

    invoke-interface {p0, v4, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/kwad/sdk/c/e;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v4

    iput-object v4, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->hostList:Ljava/util/List;

    const-string v4, "uiType"

    invoke-interface {p0, v4, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v4

    iput v4, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->uiType:I

    const-string v4, "preloadSwitch"

    invoke-interface {p0, v4, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v4

    iput v4, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->preloadSwitch:I

    const-string v4, "rewardTopBarNewStyle"

    invoke-interface {p0, v4, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->rewardTopBarNewStyle:I

    const/4 v2, 0x0

    const-string v4, "playerConfig"

    invoke-interface {p0, v4, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerConfig:Ljava/lang/String;

    const-string v2, "playerEnable"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerEnable:Z

    const/4 v2, 0x0

    const-string v4, "homePlaySpeed"

    invoke-interface {p0, v4, v2}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlaySpeed:F

    const-string v2, "homePlaySpeedTime"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlaySpeedTime:I

    const-string v2, "homePlayCompleteType"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->homePlayCompleteType:I

    const-string v2, "replayTubeEpisode"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->replayTubeEpisode:I

    const-string v2, "convertEnableStrongPatch"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->convertEnableStrongPatch:I

    const-string v2, "authorProfileSwitch"

    invoke-interface {p0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->authorProfileSwitch:I

    :try_start_0
    const-string v2, "posContentInfoList"

    invoke-interface {p0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2, p0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result p0

    if-lez p0, :cond_0

    :goto_0
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result p0

    if-ge v1, p0, :cond_0

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object p0

    new-instance v3, Lcom/kwad/sdk/core/response/model/b;

    invoke-direct {v3}, Lcom/kwad/sdk/core/response/model/b;-><init>()V

    invoke-virtual {v3, p0}, Lcom/kwad/sdk/core/response/model/b;->a(Lorg/json/JSONObject;)V

    iget-object p0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->posContentConfigList:Ljava/util/List;

    invoke-interface {p0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :catch_0
    move-exception p0

    invoke-static {p0}, Lcom/kwad/sdk/core/d/b;->a(Ljava/lang/Throwable;)V

    :cond_0
    return-object v0
.end method

.method public static c()Z
    .locals 3

    sget v0, Lcom/kwad/sdk/c;->a:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-ne v0, v2, :cond_0

    return v1

    :cond_0
    const-class v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    invoke-static {v0}, Lcom/kwad/sdk/plugin/e;->a(Ljava/lang/Class;)Lcom/kwad/sdk/plugin/c;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    const-string v2, "KEY_PLAYER_TYPE"

    invoke-interface {v0, v2}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;->a(Ljava/lang/String;)Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    return v0

    :cond_1
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-nez v0, :cond_2

    return v1

    :cond_2
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget-boolean v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->playerEnable:Z

    return v0
.end method

.method public static d()I
    .locals 1

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-nez v0, :cond_0

    const/16 v0, 0x14

    return v0

    :cond_0
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->batchReportCatchLimit:I

    return v0
.end method

.method public static e()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    return-object v0

    :cond_0
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->hostList:Ljava/util/List;

    return-object v0
.end method

.method public static f()Z
    .locals 4

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    const-class v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    invoke-static {v0}, Lcom/kwad/sdk/plugin/e;->a(Ljava/lang/Class;)Lcom/kwad/sdk/plugin/c;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    const-string v2, "KEY_UI_TYPE"

    invoke-interface {v0, v2}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;->a(Ljava/lang/String;)Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;

    move-result-object v0

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-eq v0, v2, :cond_0

    if-ne v0, v3, :cond_1

    :cond_0
    const/4 v1, 0x1

    :cond_1
    return v1

    :cond_2
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->uiType:I

    if-eq v0, v2, :cond_3

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->uiType:I

    if-ne v0, v3, :cond_4

    :cond_3
    const/4 v1, 0x1

    :cond_4
    return v1
.end method

.method public static g()I
    .locals 2

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    if-eqz v0, :cond_1

    const-class v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    invoke-static {v0}, Lcom/kwad/sdk/plugin/e;->a(Ljava/lang/Class;)Lcom/kwad/sdk/plugin/c;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;

    const-string v1, "KEY_UI_TYPE"

    invoke-interface {v0, v1}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin;->a(Ljava/lang/String;)Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/kwad/sdk/plugin/DevelopMangerPlugin$DevelopValue;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    return v0

    :cond_0
    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->uiType:I

    return v0

    :cond_1
    const/4 v0, 0x0

    return v0
.end method

.method public static h()Z
    .locals 2

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/kwad/sdk/core/a/b;->a:Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/SdkConfigData$AbConfigs;->rewardTopBarNewStyle:I

    if-eqz v0, :cond_0

    const/4 v1, 0x1

    :cond_0
    return v1
.end method
